<?php
	
	require_once( "common.php" );

	class UserPlugin extends CommonPlugin
	{
		const namespace = "user";
		
		public function authenticate( $username, $password )
		{
			$password = md5( $password );
			
			$user = $this->xmlQuery( "authenticate", Array( "username" => $username, "password" => $password ) );
			
			return @array_pop( $user );
		}
	}

?>
